<?php /* Smarty version 2.6.2, created on 2011-09-10 18:37:28
         compiled from adv/add_program1.tpl */ ?>
<?php if ($this->_tpl_vars['say'] == 'redirecLR'): ?>
	<head>
		<title>Redirecting to LR....</title>
	</head>
	<form method="post" name="sbmtToLR" action="https://sci.libertyreserve.com">
	<!-- <form method="post" name="sbmtToLR" action="<?php echo $this->_tpl_vars['settings']['site_url']; ?>
/?a=add"> -->
		<!-- phan nay de test sau khi test xong thi xoa di -->
	<!-- 	<input type="hidden" name="lr_paidto" value="<?php echo $this->_tpl_vars['settings']['admin_lr_account']; ?>
"  />
		<input type="hidden" name="lr_paidby" value="U9516474"  />
		<input type="hidden" name="lr_transfer" value="61072133">
		<input type="hidden" name="lr_store" value="tester"/> 
		-->
		<!-- phan nay de test sau khi test xong thi xoa di -->
		
		<input type="hidden" name="lr_acc" value="<?php echo $this->_tpl_vars['settings']['admin_lr_account']; ?>
"  /> 
		<input type="hidden" name="lr_amnt" value="<?php echo $this->_tpl_vars['fee']; ?>
" > 
		<input type="hidden" name="lr_currency" value="LRUSD" /> 
		<input type="hidden" name="lr_comments" value="Add program by:<?php echo $this->_tpl_vars['email']; ?>
" />
		<input type="hidden" name="lr_success_url" value="<?php echo $this->_tpl_vars['settings']['site_url']; ?>
/?a=add&say=success" /> 
		<input type="hidden" name="lr_success_url_method" value="POST" />  
		<input type="hidden" name="lr_fail_url" value="<?php echo $this->_tpl_vars['settings']['site_url']; ?>
/?a=add&say=notsuccess" /> 
		<input type="hidden" name="lr_fail_url_method" value="POST" /> 
		<input type="hidden" name="lr_status_url" value="<?php echo $this->_tpl_vars['settings']['site_url']; ?>
" />
		
		<input type="hidden" name="action_type" value="1" />
		<input type="hidden" name="group_id" value="<?php echo $this->_tpl_vars['group_id']; ?>
" />
		<input type="hidden" name="action" value="add_money" />
		<input type="hidden" name="payment_type" value="1" />
		<input type="hidden" name="email" value="<?php echo $this->_tpl_vars['email']; ?>
" />
		 
		<br>
		<center>
		<table  width="70%" style="margin-top: 150px;" >
			<tr>
				<td align="center">Redirected to LibertyReserve, Please Waiting......</td>
			</tr>
			<tr>
				<td align="center">
					<input type="submit" value="Pay <?php echo $this->_tpl_vars['fee']; ?>
 via Liberty Reserve >>" /> 
				</td>
			</tr>
		</table>
		</center>
	</form>
	<?php echo '
	<script type="text/javascript">
		//set time out 1s
		var interval = 1000;
		function StartTheTimer() {
			self.setTimeout("StartTheTimer()", interval);
		    document.sbmtToLR.submit();
		}
		StartTheTimer();
	</script>
	'; ?>

<?php else: ?>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "adv/AddProgramConfirmRules.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
	
<?php endif; ?>
